package byName;

public abstract class Animal {
	SwimBehavior swimBehavior;
	EatBehavior  eatBehavior;
	MoveBehavior moveBehavior;

public String name;

public void performSwim(){
	swimBehavior.swim();
}

public void performEat(){
	eatBehavior.eat();
}

public void performMove(){
	moveBehavior.move();
}

public abstract void display();
	

}
